/*
 * This file is part of algowala.
 *
 * algowala is copyright (c) 2012 Jagannathan Sampath <algowala@jagernot.com>
 *
 * algowala is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 2 of the License, or
 * (at your option) any later version.
 *
 * algowala is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
 * for more details.
 *
 * You should have received a copy of the GNU General Public License along
 * with algowala.  If not, see <http://www.gnu.org/licenses/>.
 *
*/

#ifndef CURVE_LISTENER
#define CURVE_LISTENER

struct curve_editor;

struct curve_listener {
  virtual void selected (int i) {}
  virtual void edited (curve_editor* ed, int i) {}
  virtual ~curve_listener () {}
};

struct solver;

struct tilt_listener : curve_listener {
  solver* sol;
  tilt_listener (solver* _s) : sol (_s) {}
  void edited (curve_editor* ed, int i);
};
#endif
